{% extends "layout.html" %}

{% block head %}
<title>{{ _(config["WEBSITE_NAME"]) }} - {{ _("All Users") }}</title>
<meta name="robots" content="index">
<meta name="description" content="{{ _('List of all uruk wiki users.') }}">
{% endblock %} 

{% block body %}
<div class="row">
	<div class="container-fluid">
		{% include "wiki/search_bar.html" %}
		{% include "wiki/aside.html" %}
		{{ toolbar(edit=False, delete=False, add=True) }}	
		<section id="content" class="pull-left col-sm-10">
			<div class="row">
				{% if len(query) <= 0 %}
					<b>{{ _("There are no users yet.") }}</b>
				{% else %}	
					{% for el in query %}
						{% if session["direction"] == "rtl" %}
							<div class="pull-right col-sm-6">	
						{% else %}
							<div class="pull-left col-sm-6">	
						{% endif %}
							<h2 style="margin-left: 20px; margin-bottom: 10px !important"><a href="{{ url_for('wiki.user_profile', username=el.username) }}">{{ el.username }}</a></h2>
							{% if session["direction"] == "rtl" %}
								<p style="margin-right: 40px;">{{ el.description }}</p>
							{% else %}
								<p style="margin-left: 40px;">{{ el.description }}</p>
							{% endif %}
						</div>
					{% endfor %}
				{% endif %}
			</div>
		</section>
	</div>
</div>
{% endblock %}